package com.eastfair.certificate.dto;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.annotation.TableField;
import com.eastfair.certificate.enumeration.BadgeTemplateCertificateTypeEnum;
import com.eastfair.certificate.enumeration.BadgeTemplateClassifyEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import lombok.Data;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.List;

import static com.baomidou.mybatisplus.annotation.SqlCondition.LIKE;

/**
 * <p>
 * 实体类
 * 证件模块
 * </p>
 *
 * @author ligang
 * @since 2022-12-20
 */
@Data
@ApiModel(value = "BadgeTemplateUpdateDTO", description = "证件模块")
public class BadgeTemplateDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    private Long id;

    /**
     * 证件id
     */
    @ApiModelProperty(value = "证件id")
    private Long certificateId;
    /**
     * 模板名称
     */
    @ApiModelProperty(value = "模板名称")
    @Size(max = 100, message = "模板名称长度不能超过100")
    private String templateName;

    /**
     * 样式内容
     */
    @ApiModelProperty(value = "样式内容")
    @Excel(name = "样式内容")
    private String styleTxt;
    /**
     * 是否删除：1是；0否
     */
    @ApiModelProperty(value = "是否删除：1是；0否")
    private Integer isDeleted;
    /**
     * 租户id
     */
    @ApiModelProperty(value = "租户id")
    private Long tenantId;
    /**
     * 项目id
     */
    @ApiModelProperty(value = "项目id")
    private Long projectId;
    /**
     * 团队id
     */
    @ApiModelProperty(value = "团队id")
    private Long teamId;
    /**
     * 子系统id
     */
    @ApiModelProperty(value = "子系统id")
    private Long subsystemId;
    /**
     * 是否可用，1是；0否
     */
    @ApiModelProperty(value = "是否可用，1是；0否")
    private Integer isEnabled;
    /**
     * 展会id
     */
    @ApiModelProperty(value = "展会id")
    @Excel(name = "展会id")
    private Long exhibitionId;

    /**
     * 用户答证件id
     */
    @ApiModelProperty(value = "用户答证件id")
    @Excel(name = "用户答证件id")
    private Long certificateUserId;

    /**
     * 证件分类:#{ARRANGE:布展证;MOVEOUT:撤展证;}
     */
    @ApiModelProperty(value = "证件分类:#{ARRANGE:布展证;MOVEOUT:撤展证;}")
    private BadgeTemplateClassifyEnum classify;


    /**
     * 宽
     */
    @ApiModelProperty(value = "宽")
    @TableField(value = "wide")
    @Excel(name = "宽")
    private Integer wide;

    @ApiModelProperty(value = "")
    @Size(max = 255, message = "长度不能超过255")
    private String typeface;

    @ApiModelProperty(value = "")
    @Size(max = 255, message = "长度不能超过255")
    private String enTypeface;

    /**
     * 高
     */
    @ApiModelProperty(value = "高")
    @TableField(value = "high")
    @Excel(name = "高")
    private Integer high;

    /**
     * 底图地址
     */
    @ApiModelProperty(value = "底图地址")
    private String baseMapImg;


    /**
     * 模板内容信息
     */
    private List<JSONObject> badgeDetailJsonList;


    /**
     * 模板内容信息
     */
    private List<BadgeTemplateDetailDTO> badgeTemplateDetailDTOList;

    /**
     * 证件类型:#{CAR:车证;PEOPLE:人证;POWER:机力车证;OTHER:其他证;}
     */
    @ApiModelProperty(value = "证件类型:#{CAR:车证;PEOPLE:人证;POWER:机力车证;OTHER:其他证;}")
    private BadgeTemplateCertificateTypeEnum certificateType;


}
